package com.yanghang.controller;

import com.github.pagehelper.PageInfo;
import com.yanghang.entity.Record;
import com.yanghang.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class RecordController {
    @Autowired
    private RecordService rs;

    @GetMapping("/record")
    public PageInfo<Record>selectByPage(int pageNum ,int pageSize ,String startTime,String endTime){
        return rs.selectByPage(pageNum, pageSize, startTime, endTime);
    }
}
